import request from '@/utils/request'

//获取
export const goods = params => request({
  url: '/roles',

  params
})
// 添加
export const goodsAdd = (roleName, roleDesc) => request({
  url: 'roles',
  method: 'POST',
  data: {
    roleName,
    roleDesc
  }
})

export const goodsCate = goods
export const goodsAddCate = goodsAdd